package com.cd.javacxy.common.model.query;

import com.cd.javacxy.common.model.enums.ArticleType;
import com.cd.javacxy.common.model.enums.OrderByEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author cookie
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CollectionQuery extends BaseQuery {
    private Integer articleId;

    private ArticleType articleType;

    private Integer userId;

    private String title;

    private String startDate;

    private String endDate;

    private OrderByEnum orderBy;

    public CollectionQuery(Integer articleId, ArticleType articleType, Integer userId) {
        this.articleId = articleId;
        this.articleType = articleType;
        this.userId = userId;
    }
}
